<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>添加学院专业</title>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
</head>
<style>
    form{
        width: 400px;
        position: absolute;
        top: 10px;
        left: 50%;
        margin-left: -200px;
    }
</style>
<body>
<form class="layui-form" lay-filter="college">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="name" required  lay-verify="required|name" placeholder="请输入名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类别</label>
        <div class="layui-input-block">
            <select name="type" id="type" lay-verify="required" lay-filter="type">
                <option value="">请选择类别</option>
                <option value="0">学院</option>
                <option value="1">专业</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属学院</label>
        <div class="layui-input-block">
            <select name="college" id="college" lay-verify="required" lay-search>
                <option value="">请选择所属学院</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="submit">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/add/addUtil.js"></script>
<script type="text/javascript" src="../../js/add/collegeAdd.js"></script>
</html>